package com.yixin.hospital.service;

import com.yixin.hospital.common.ApiResult;
import com.yixin.hospital.entity.bo.PageInfo;
import com.yixin.hospital.entity.domain.CheckRepository;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yixin.hospital.entity.dto.req.check.CheckAddReqDTO;
import com.yixin.hospital.entity.dto.req.check.WriteOffReqDTO;
import com.yixin.hospital.entity.vo.CheckDetailVo;
import com.yixin.hospital.entity.vo.CheckRepositoryVo;

/**
* @author Administrator
* @description 针对表【check(盘点表)】的数据库操作Service
* @createDate 2024-05-30 17:51:21
*/
public interface CheckRepositoryService extends IService<CheckRepository> {

    ApiResult<?> allList(int currentPage, int pageSize, Long drugDepositoryId, Long userId);

    ApiResult<PageInfo<CheckDetailVo>> getInfo(int currentPage, int pageSize, int checkId);

    ApiResult<?> addOrUpdate(CheckAddReqDTO checkAddReqDTO, Long userId, String userName);

    ApiResult<PageInfo<CheckRepositoryVo>> writeOffList(int currentPage, int pageSize, Long drugDepositoryId, Long userId);

    ApiResult<?> writeOff(WriteOffReqDTO writeOffReqDTO, Long userId, String userName);

    ApiResult<?> writeOffRemarks(WriteOffReqDTO writeOffReqDTO, Long userId, String userName);

    ApiResult<?> queryDepositoryNumList(int currentPage, int pageSize, Long drugDepositoryId, Long userId);
}
